//get url params
const getUrlParams = () =>
	(q => q ? Object.assign(...q.split('&').map(e => ((a, b) => ({
	[a]: b
}))(...e.split('=')))) : {})(window.location.href.match(/([^\?]+)/g)[1])

const isAndroid = /android/i.test(navigator.userAgent.toLowerCase());



export default {
	getUrlParams,
	isAndroid
}


//((q) => q ? Object.assign(...q[0].replace('?', '').split('&').map(e => ((a, b) => ({
//	[a]: b
//}))(...e.split('=')))) : {})(window.location.href.match(/(?=\?).*/))

//(q => q ? Object.assign(...q.split('&').map(e => ((a, b) => ({
//	[a]: b
//}))(...e.split('=')))) : {})(window.location.href.match(/([^\?]+)/g)[1])